<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
    <title>test</title>
    <script src="/resources/js/jquery-1.11.3.min.js"></script>
</head>
<body>
<input type="button" value="发送ajax" onclick="send()" />
<script>
    function send(){
        $.ajax({
            url: "http://localhost:8080/user",
            type: "get",
            success:function (data) {
                alert(data);
        },//响应成功后的回调函数

        })
    }
</script>
</body>
</html>